package info.brenstar.boxedin.util;

public class Trig {
	
	private Trig() {}
	
	public static int lendir_x(double length, double direction) {
		int x;
		x = (int)Math.round(length * Math.cos(Math.toRadians(direction)));
		return x;
	}
	
	public static int lendir_y(double length, double direction) {
		int y;
		y = (int)Math.round(length * -Math.sin(Math.toRadians(direction)));
		return y;
	}
	
}
